package t4tools.etodo.views.providers;

import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

import t4tools.etodo.model.AbstractTreeElement;

public class ViewLabelProvider extends LabelProvider {

	@Override
	public String getText(Object obj) {
		return ((AbstractTreeElement) obj).getName();
	}

	@Override
	public Image getImage(Object obj) {
		return ((AbstractTreeElement) obj).getIcon();
	}
}
